import api from "./request";

export const getBannerList = (type = 2) => {
  return api.get("/banner", { type });
};

export const getTopMusicList = (idx = 1) => {
  return api.get("/top/list", { idx });
};


// 展示歌单
export const getSongMenu = (cat = "全部", limit = 6, offset = 0) => {
  return api.get("/top/playlist", {  cat,
    limit,
    offset });
};

// 歌单详情
export const getSongMenuDetail = (id ) => {
  return api.get("/playlist/detail/dynamic", { id });
};
